package com.lib76.buildCode.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 数据库配置
 * @author 张浩
 *
 */
public class DbConfig {
	
	private String ip = "127.0.0.1";
	private Integer port = 3306;
	private String userName;
	private String userPwd;
	private String databaseName;

	private String[] spaces;
	private String tablePattern;
	private Map<String,TableEntity> tables; //表对象集合
	
	public DbConfig(){
		this.tables = new HashMap<String,TableEntity>();
	}
	
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getDatabaseName() {
		return databaseName;
	}

	public void setDatabaseName(String databaseName) {
		this.databaseName = databaseName;
	}

	public Map<String, TableEntity> getTables() {
		return tables;
	}

	public void setTables(Map<String, TableEntity> tables) {
		this.tables = tables;
	}

	public String[] getSpaces() {
		return spaces;
	}

	public void setSpaces(String[] spaces) {
		this.spaces = spaces;
	}

	public String getTablePattern() {
		return tablePattern;
	}

	public void setTablePattern(String tablePattern) {
		this.tablePattern = tablePattern;
	}
}
